package nero.yncc.com.createart.activity;

import android.widget.TextView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

import java.util.HashMap;

import nero.yncc.com.createart.R;
import nero.yncc.com.createart.base.BaseActivity;
import nero.yncc.com.createart.base.Constants;
import nero.yncc.com.createart.utils.HttpUtils;

/**
 * Created by nero on 2017/7/11.
 */

@ContentView(R.layout.activity_aboutin)
public class ActivityAboutIn extends BaseActivity {
    @ViewInject(R.id.tv_content)
    TextView tv_content;

    @Override
    protected void initData() {
        super.initData();
        setTitleBarTitle("关于我们");
    }

    @Override
    protected void getHttpData() {
        super.getHttpData();
        new HttpUtils().post(this, Constants.API_ABOUTUS, new HashMap<String, String>(), null, HttpUtils.TYPE_NOTHING, new HttpUtils.HttpCallback() {
            @Override
            public void success(String msg, Object json) {
                tv_content.setText(json.toString());
            }

            @Override
            public void fail(String failMsg) {

            }
        });
    }
}
